// component/j-swiper/j-swiper.js
var app = getApp()
Component({

	ready: function () {
		var that = this;
		wx.request({
			url: app.globalData.host + 'index.php/api/goods/classify?admin_id=' + app.globalData.admin_id + '&parent_id=' + that.data.keyCatid,
			success: function (e) {
				that.setData({
					banner: e.data.data
				})
			}
		})
	},
	/**
	 * 组件的属性列表
	 */
	properties: {
		// 轮播高度
		height: {
			type: String,
			value: '500'
		},
		// 分类id
		keyCatid: Number
	},

	/**
	 * 组件的初始数据
	 */
	data: {
		banner: []
	},

	/**
	 * 组件的方法列表
	 */
	methods: {

	}
})
